@model ShivamEMR.Model.Domain.PharmacyDomain.DrugGeneric

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>DrugGeneric</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Administration</div>
    <div class="display-field">@Model.Administration</div>

    <div class="display-label">SpecialPrecautions</div>
    <div class="display-field">@Model.SpecialPrecautions</div>

    <div class="display-label">AdverseDrugReactions</div>
    <div class="display-field">@Model.AdverseDrugReactions</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">Category</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Category).ToString()</div>

    <div class="display-label">DrugClass</div>
    <div class="display-field">@(Model.DrugClass == null ? "None" : Model.DrugClass.Name)</div>

    <div class="display-label">Group</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Group).ToString()</div>

    <div class="display-label">Dosage</div>
    <div class="display-field">@(Model.Dosage == null ? "None" : Model.Dosage.Count.ToString())</div>

    <div class="display-label">ContraIndications</div>
    <div class="display-field">@(Model.ContraIndications == null ? "None" : Model.ContraIndications.Count.ToString())</div>

    <div class="display-label">Brands</div>
    <div class="display-field">@(Model.Brands == null ? "None" : Model.Brands.Count.ToString())</div>

    <div class="display-label">DrugInteractions1</div>
    <div class="display-field">@(Model.DrugInteractions1 == null ? "None" : Model.DrugInteractions1.Count.ToString())</div>

    <div class="display-label">DrugInteractions2</div>
    <div class="display-field">@(Model.DrugInteractions2 == null ? "None" : Model.DrugInteractions2.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


